<!DOCTYPE html> 
<!--systemIntro.html
要求：介绍联乐人生系统、推广传统文化、介绍对联知识
制作者：徐丽杭
时间：5.6
版本：1.0
-->
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>联乐人生对联系统-系统介绍</title>
	<link href="assets/css/style.css" rel="stylesheet" media="screen" />
</head>

<body>
	<?php
	session_start();
	if(!isset($_SESSION["userName"]))
	{
		echo "<script>";
		echo "alert('您尚未登录，请登录!');";
		echo "window.location='login/login.html';";
		echo "</script>";
	}
	?>
	<div class="main">
		<div class="content">
			<div class="header">
				<div class="header_resize">
					<div class="logo">
						<div class="logoHead"></div>
						<div class="logomain"></div>
						<div class="logoEnd"><div class="line"></div></div>
					</div>
					<!--导航-->
					<?php include("cludefile/nav.php");?>
					<!--导航结束-->
					<div class="clr"></div>	
				</div>	
			</div>

			<!--头部区结束,主题内容区开始-->
			<div class="container">
				<div class="personalInfo">
					<?php
    //1.连接数据库
					$conn=mysql_connect("localhost","root","") or die("数据库连接不成功");
					$db=mysql_select_db("test") or die("数据库指定不成功");

	//2.查询用户个人信息
					$sql="select * from user where uid='".$_SESSION['userid']."'";
					$re=mysql_query($sql);
					if(mysql_affected_rows($conn)<0)
						die("查询失败！");
					$row=mysql_fetch_array($re);
					?>
					<h4>欢迎<span><?php echo $row["uname"];?></span>登录! </h4>
					<p><ul><li>用户名：<?php echo $row["uname"];?></li>
						<li>用户ID：<?php echo $row["uid"];?></li>
						<li>用户类型：会员</li>
						<li>手机号:<?php echo $row['uphone'];?></li>
						<li>积分:<?php echo $row["points"];?></li>
					</ul>
				</div>
			</div>
			<!--主题内容区结束，页脚区开始-->
			<?php include("cludefile/footer.php");?>
			<!--页脚区内容结束-->	
		</div>
	</div>
</body>
</html>


